<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>      
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/include/css/style.css"/>
<script type="text/javascript" src="${pageContext.request.contextPath}/include/js/jquery-1.6.min.js"></script>
<script type="text/javascript">
	$(document).ready(function(){
		$('.link-back').click(function(){
			$('form[name=myForm]').attr('action','${pageContext.request.contextPath}/company/back');
			$('.btn-save').click();
		});	
	});   
</script>

<div class="sub-content">
	
	<h3>Xác nhận thông tin đã nhập</h3>
	<form:form method="post" action="complete" commandName="obj" name="myForm">
		<form:hidden path="companyId" />
		<table>
			<tr>
				<td class="column1">Tên tổ chức hoặc cá nhân:</td>
				<td>${obj.companyName} <form:hidden path="companyName" />
				</td>
			</tr>
			<tr>
				<td class="column1">Tên đầy đủ:</td>
				<td>${obj.companyFullName} <form:hidden path="companyFullName" />
				</td>
			</tr>
			<tr>
				<td class="column1">Địa chỉ:</td>
				<td>${obj.companyAddress} <form:hidden path="companyAddress" />
				</td>
			</tr>
			<tr>
				<td class="column1">Email:</td>
				<td>${obj.companyEmail} <form:hidden path="companyEmail" />
				</td>
			</tr>
			<tr>
				<td class="column1">Điện thoại liên hệ:</td>
				<td>${obj.companyPhone} <form:hidden path="companyPhone" />
				</td>
			</tr>
			<tr>
				<td class="column1">Fax:</td>
				<td>${obj.companyFax} <form:hidden path="companyFax" />
				</td>
			</tr>
			<tr>
				<td class="column1">Mã số thuế:</td>
				<td>${obj.companyTaxCode} <form:hidden path="companyTaxCode" />
				</td>
			</tr>
			<tr>
				<td class="column1">Mô tả chi tiết kinh doanh</td>
				<td>${obj.companyDes} <form:hidden path="companyDes" />
				</td>
			</tr>
			<tr>
				<td class="column1">Thành phố:</td>
				<td>${obj.cityId.cityName} <form:hidden path="cityId.cityId" />
				</td>
			</tr>
			<tr>
				<td class="column1">
					<a href="${pageContext.request.contextPath}/company">Danh sách</a> &nbsp;&nbsp;
					<a href="javascript:void(0)" class="link-back">Sửa</a>&nbsp;&nbsp;
				</td>
				<td>
					<input type="submit" value="Hoàn thành" class="btn-save"/>					
				</td>
			</tr>
		</table>
	</form:form>
</div>	


